<?php

namespace App\Http\Middleware;

use Closure;
use Log;

class BeforeMiddleware {
    
//    protected $DEBUG = FALSE; //调试接口总开关
//    protected $CACHE_ON = TRUE; //缓存总开关
    
    public function handle($request, Closure $next) {
        $uri = $request->path();
//        if($uri != "interface/goods/getGoodsInterface" && $uri != "interface/goods/getStatus"){
        if($uri != "interface/goods/getStatus"){
            Log::info("路由=".$uri." -时间=". date("Y-m-d H:i:s",time()));
            Log::info("路由请求参数:". json_encode($request->all()));
        }
        return $next($request);
    }

}
